<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="lib/axios.min.js"></script>
</head>
<body>
	<button>get1</button>
	<button>get2</button>
</body>
<script>
	const btns = document.querySelectorAll("button");
	btns[0].onclick = function(){
		// 第一个参数是请求地址，第二个参数是配置对象
		axios("http://zhangpeiyue.com/scoreList",{
			method:"post",
			data:"a=1&b=2",
			params:{
				id:1,
				type:2
			}
		})
	}
	btns[1].onclick = function(){
		// axios({})
		axios.request({
			url:"http://zhangpeiyue.com/scoreList"
		})
	}
</script>
</html>